package com.woniuxy.health.project.web;

import com.woniuxy.health.commons.entity.Package;
import com.woniuxy.health.project.service.PackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("package")
public class PackageController {
    @Autowired
    private PackageService packageService;

    @GetMapping("all")
    public String fingAllPackages(){
        List<Package> packages = packageService.fingAllPackages();
        if (packages.size()>0){

            return "ok";
        }
        return "再看看";
    }
}
